﻿     <tr>
      <td>
        <%= article_item.articletitle-%></td>
    <td><%= article_item.author %></td>
    <td>
		<% @departments.each do |department| %>

	         <% if department.id == article_item.department_id %>
			    <%=  department.name%>
			 <% end %>
		<% end %>
	</td>
    <td><%= article_item.receiveddate -%></td>
    <td><%= article_item.revision_records.length -%></td>
    <td><%= article_item.contributedate -%></td>
    <td><%= article_item.journal -%></td>
    <td><%= article_item.issuenumber -%></td>

    <td><%= link_to '修改', :action => 'edit', :id => article_item %>  
        <%= link_to '删除', { :action => 'destroy', :id => article_item }, :confirm => 'Are you sure?', :method => :post %></td>
  </tr>
